package practise.hibernate.dao;

import org.springframework.transaction.annotation.Transactional;
import practise.hibernate.persistence.MoiveSite;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Richard
 * Date: 8/28/12
 * Time: 9:32 PM
 * To change this template use File | Settings | File Templates.
 */
public interface MoiveSiteDao {
    @Transactional(readOnly = true)
    List<MoiveSite> findAllMoiveesites();

    @Transactional(readOnly = true)
    List<MoiveSite> findBySitenumber(Integer sitenumber);

    @Transactional(readOnly = false)
    void deleteMoive(int id);

    @Transactional
    MoiveSite merge(MoiveSite moiveSite);
}
